package com.powernode;

import java.util.Scanner;

/**
 * description 暂无描述
 * author smile
 * time 2023/3/13 21:37
 */
public class Vehiclecs {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.print("请输入速度：");
        int a= input.nextInt();
        System.out.print("请输入体积：");
        int b= input.nextInt();
        Vehicle vehicle=new Vehicle(a,b);
        vehicle.setSpeed(a);
        vehicle.setSize(b);
        vehicle.move();
        vehicle.speedUp();
        vehicle.speedDown();
    }
}
